package com.edu.bean;

/**
 * @Author:mx
 * @Date:2025/9/29-14:19:18
 */
public class Teacher {

    private int teacherId;

    private String teacherName;

    private int teacherAge;

    private String teacherSex;

    private String major;


    public int getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(int teacherId) {
        System.out.println("添加完后，mybatis 把添加成功的老师的id 又填到 原本的参数对象中");
        this.teacherId = teacherId;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public int getTeacherAge() {
        return teacherAge;
    }

    public void setTeacherAge(int teacherAge) {
        this.teacherAge = teacherAge;
    }

    public String getTeacherSex() {
        return teacherSex;
    }

    public void setTeacherSex(String teacherSex) {
        this.teacherSex = teacherSex;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "teacherId=" + teacherId +
                ", teacherName='" + teacherName + '\'' +
                ", teacherAge=" + teacherAge +
                ", teacherSex='" + teacherSex + '\'' +
                ", major='" + major + '\'' +
                '}';
    }
}
